// pages/subject/subject.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
    list: [
      {
        type: '爱情',
        url: '/assets/image/aiqing.png'
      },
      {
        type: '动画',
        url: '/assets/image/donghua.png'
      },
      {
        type: '动作',
        url: '/assets/image/dongzuo.png'
      },
      {
        type: '科幻',
        url: '/assets/image/kehuan.png'
      },
      {
        type: '喜剧',
        url: '/assets/image/xiju.png'
      }
    ]
  },
  onLoad(){

  },
  tap(e){
   wx.navigateTo({
     url:`/pages/subject-list/subject-list?type=${e.currentTarget.dataset.type}`,
   })
  }
})
